<template>
  <div>
    <CloudSwitch default-checked :disabled="disabled" style="margin-bottom: 5px" />
    <br />
    <CloudButton type="primary" @click="onToggle"> Toggle disabled </CloudButton>
  </div>
</template>

<script>
  export default {
    title: '4.不可用',
    subTitle: 'Switch 失效状态。',
    data () {
      return {
        disabled: true,
      }
    },
    methods: {
      onToggle () {
        this.disabled = !this.disabled;
      },
    }
  }
</script>

<style lang="scss">
</style>